<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="/WEB-INF/include.jsp"%>
<%@page import="ca.etsmtl.log720.equipe03.roles.ModulesRoles" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%if(!ModulesRoles.getInstance().isUserAuthorized(ModulesRoles.AJOUT_D_UNE_INFRACTION,request))
{
%>
	<jsp:forward page="../index.jsp"/>
<%
}
%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title><fmt:message key="title" /></title>
    
  </head>
  <body>
    <h1><fmt:message key="insererinfraction.heading" /></h1>
    <form:form method="post" commandName="ajouterInfraction">
      <table width="100%">
        <tr>
          <td>Description: <form:input path="description" /></td>
          <td><form:errors path="description" /></td>
        </tr>
        <tr>
          <td>Niveau: <form:input path="niveau" /></td>
          <td><form:errors path="niveau" /></td>
        </tr>
        <tr>
          <td><input type="submit" value="<fmt:message key="insererinfraction.submit.button" />"></td>
        </tr>
      </table>
    </form:form>
  </body>
</html>